package oaSystem.biz;

import java.util.List;

import oaSystem.entity.Announcement;
public interface AnnouncementBiz {
	void addAnnouncement(Announcement announcement);//添加公告
	void submitAnnouncement(Announcement announcement);//提交公告
	void updateDrafts(Announcement announcement);//更新草稿箱
	void approveAnnouncement(int announcementId,int status);//审批公告:公告编号，审批人工号，审核结果编号
	
	List<Announcement> findAnnouncementByCreator(int creatorId,int status,String keyword,int pageNum,int pageSize);//申请人查看自己   不同状态的公告
	Integer findCountByCreator(int creatorId, int status, String keyword);
	List<Announcement> findAllAnnouncement();//查看所有
	List<Announcement> findAnnouncementByDepartmentId(int departmentId);//查看当前（登录用户）所属部门  的公告 
	Announcement fetchAnnouncementById(int announcementId);//查单个公告
	List<Announcement> findAnnouncementByPending(Integer departmentId,Integer status,int pageNum,int pageSize);//经理待审批的公告
	Integer findCountByPending(Integer departmentId, int status);
}
